package com.jrx.anytxn.param.mapper.base;

import com.jrx.anytxn.param.entity.PrRightsAndInterests;

public interface PrRightsAndInterestsMapper {
    /**
     * 根据主键删除
     * @param id Long
     * @return int
     */
    int deleteByPrimaryKey(Long id);

    /**
     * 保存
     * @param record PrRightsAndInterests
     * @return int
     */
    int insert(PrRightsAndInterests record);

    /**
     * 根据字段是否为空保存
     * @param record PrRightsAndInterests
     * @return int
     */
    int insertSelective(PrRightsAndInterests record);

    /**
     * 根据主键查询
     * @param id Long
     * @return PrRightsAndInterests
     */
    PrRightsAndInterests selectByPrimaryKey(Long id);

    /**
     * 根据字段是否为空更新
     * @param record PrRightsAndInterests
     * @return int
     */
    int updateByPrimaryKeySelective(PrRightsAndInterests record);

    /**
     * 根据主键更新所有字段
     * @param record PrRightsAndInterests
     * @return int
     */
    int updateByPrimaryKey(PrRightsAndInterests record);
}